<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../org/angular.min.js"></script>
</head>
<body>
    <div ng-app='hd' ng-controller='ctrl' ng-init="name='后盾人'">
      <form action="1.php">
         标题： <input type="password" name='title' ng-model='title'><br/>
            <input type="text" name='data'><br/>
            <input type="submit">
        </form>
    </div>
    <script>
      var m = angular.module('hd',[]);
      m.controller('ctrl',['$scope',function($scope){
          $scope.title = '';
          $("form").submit(function(){
              $("[name='data']").val($scope.title);
          });
      }])
    </script>
</body>
</html>